package com.example.gongchangmoshi;
class User {

    private String name;
    private String age;

    public String getName() {
        return name;
    }

    public User(String age) {
        this.age = age;
    }

    public User() {
    }

    public User(String name, String age) {
        this.name = name;
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getAge() {
        return age;
    }

    public void info(){
        System.out.println("姓名:"+name+"   年龄:"+age);
    }

    public void niu(){
        System.out.println("牛被使用");
    };
}
